import http from '.'
/**
 * 查询省份
 * @param {*} params
 */
export function queryProvince() {
  return http.get('api/v1/province/selectAllProvince')
}
/**
 * 查询城市
 * @param {*} rowId
 */
export function getCity(rowId) {
  return http.get('api/v1/city/selectAllCity?provinceId=' + rowId)
}
/**
 * 查询区县
 * @param {*} rowId
 */
export function getDistrict(rowId) {
  return http.get('api/v1/district/selectAllDistrict?cityId=' + rowId)
}
/**
 * 查询乡镇
 * @param {*} rowId
 */
export function getTown(rowId) {
  return http.get('api/v1/town/selectAllTown?districtId=' + rowId)
}
/**
 * 查询街道
 * @param {*} rowId
 */
export function getVillage(rowId) {
  return http.get('api/v1/village/selectAllVillage?townId=' + rowId)
}
/**
 * 查询小区
 * @param {*} rowId
 */
export function getCommunity(rowId) {
  return http.get(
    'api/v1/community/selectAllCommunityByVillageId?villageId=' + rowId
  )
}
/**
 * 查询未绑定所有小区（门卡绑定）
 * @param {*} rowId
 */
export function getAllCommunity(rowId) {
  return http.get('api/v1/community/getAllCommunity?doorCardId=' + rowId)
}
/**
 * 查询已绑定所有小区（门卡绑定）
 * @param {*} rowId
 */
export function getNoBindAllCommunity(rowId) {
  return http.get(
    'api/v1/community/selectNoBindAllCommunity?doorCardId=' + rowId
  )
}
